﻿Imports System
Imports System.IO
Imports System.Net
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Media
Imports System.Windows.Media.Animation
Imports System.Windows.Navigation

Partial Public Class WindowDetailTbleFlux

    Private _VMFichierPMT As ViewModelFichierPMT
    Public Sub New(Optional VMFichierPMT As ViewModelFichierPMT = Nothing)
        MyBase.New()

        Me.InitializeComponent()

        ' Insérez le code requis pour la création d’objet sous ce point.
        _VMFichierPMT = VMFichierPMT
    End Sub
    Private Sub WindowDetailTbleFlux_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
        'TODO : ajoutez ici l’implémentation du gestionnaire d’événements.
        If Not _VMFichierPMT Is Nothing Then
            Me.DataContext = _VMFichierPMT
            AddHandler _VMFichierPMT.RequestClose, AddressOf RequestClose_Handler
        End If
    End Sub
    Private Sub RequestClose_Handler(ByVal sender As Object, ByVal e As EventArgs)
        Me.Close()
    End Sub

End Class
